home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / flex / flexb237.zoo / diff3 < prev    next >
Text File  |  1992-03-10  |  1KB  |  43 lines

  1. Newsgroups: comp.sources.bugs
  2. From: chip@tct.com (Chip Salzenberg)
  3. Subject: Bug in flex 2.3.7, with fix
  4. Date: Thu, 27 Feb 1992 20:35:00 GMT
  5. Organization: TC Telemanagement, Clearwater, FL
  6.  
  7. There's a precedence bug in flex 2.3.7 scan.[lc].  Here's a fix.
  8. (BTW, the bug showed up as a warning in GCC2.  Thanks, RMS.)
  9.  
  10. Index: scan.l
  11. ***************
  12. *** 188,192 ****
  13.               for ( i = strlen( (char *) nmdef ) - 1;
  14.                     i >= 0 &&
  15. !                   nmdef[i] == ' ' || nmdef[i] == '\t';
  16.                     --i )
  17.                   ;
  18. --- 188,192 ----
  19.               for ( i = strlen( (char *) nmdef ) - 1;
  20.                     i >= 0 &&
  21. !                   (nmdef[i] == ' ' || nmdef[i] == '\t');
  22.                     --i )
  23.                   ;
  24.  
  25. Index: scan.c
  26. ***************
  27. *** 1161,1165 ****
  28.               for ( i = strlen( (char *) nmdef ) - 1;
  29.                     i >= 0 &&
  30. !                   nmdef[i] == ' ' || nmdef[i] == '\t';
  31.                     --i )
  32.                   ;
  33. --- 1161,1165 ----
  34.               for ( i = strlen( (char *) nmdef ) - 1;
  35.                     i >= 0 &&
  36. !                   (nmdef[i] == ' ' || nmdef[i] == '\t');
  37.                     --i )
  38.                   ;
  39. -- 
  40. Chip Salzenberg at Teltronics/TCT  <chip@tct.com>, <73717.366@compuserve.com>
  41.       "Informix 4GL is not a 4G, and it's barely an L."  -- John Tombs
  42.  
  43.